package ooday02.person;

public class Person {
    private int workAge;
    String address;
    String name;
    int age;
    Person(){
        System.out.println(this instanceof Doctor);
        System.out.println(this instanceof Hushi);
    }
    Person(String name,int age,String address){
        this.name=name;
        this.age=age;
        this.address=address;
    }

    void eat(){
        System.out.println(name+"吃饭...");
    }
    void sleep(){
        System.out.println("在睡觉");
    }
    void sayHi(int age){
        System.out.println("Super大家好,我叫"+name+",今年"+age+"了,"+"我住在"+address);
    }
}
